package com.github.caijh.mall.authorization.manager;

import com.github.caijh.mall.authorization.model.TokenModel;

public interface TokenManager {

    TokenModel createToken(String account, String value, String modelName);

    boolean checkToken(String token, String modelName);

    TokenModel getToken(String token, String modelName);

    void deleteToken(String token, String prefixKey);

    Integer getUserCount();

    String getLocalInfoException(String key);

    Integer getCurrentUserId();

    Integer getLocalUserId();

}
